package com.happycat.social.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.happycat.social.dto.SocialVoiceRoomSaveDto;
import com.happycat.social.dto.SocialVoiceRoomUpdateDto;
import com.happycat.social.entity.SocialVoiceRoom;
import com.happycat.social.vo.SocialVoiceRoomUserRoleVo;

/**
 * 语音聊天室房间Service接口
 *
 * @author jsonbin
 * @date 2020-09-10
 */
public interface ISocialVoiceRoomService extends IService<SocialVoiceRoom> {

    /**申请房间*/
    SocialVoiceRoom applyRoom(SocialVoiceRoomSaveDto socialVoiceRoomSaveDto);

    /**修改房间*/
    SocialVoiceRoom modifyRoom(SocialVoiceRoomUpdateDto socialVoiceRoomUpdateDto);

    /**关闭房间*/
    Boolean closeOrOpenRoom(Long id, int open);

    Boolean operateHostess(Long id, int open, long accountId);

    SocialVoiceRoom checkAndGetById(Long id);

    SocialVoiceRoom checkAndGetByRoomId(String roomId);

    SocialVoiceRoomUserRoleVo getRoomUserRole(Long id, Long accountId);
}
